<%
  #File:    /app/views/manage/permissions/list_editor_groups.rhtml
  #Author:  Andrew Stone
  #Created: 10.31.2006
%>
<%=start_small_div_wrapper%>
  <div id="page_title">Listing Editor Groups</div>
  <div id="small">
    <table>
      <thead>
        <tr>
          <td>Name</td>
          <td>Actions</td>
        </tr>
      </thead>
      <tbody>
      <%
        i = 0
        @editor_groups.each do |ug|
          bg = row_class(i)
          i += 1
      %>
          <tr class="<%=bg%>">
            <td><%=h(ug.name)%></td>
            <td>
              <%=secure_links([
                  secure_link_to('Update', ca("/manage/permissions","update_editor_group",ug.id)),
                  secure_link_to('Show', ca("/manage/permissions","show_editor_group",ug.id)),
                  secure_link_to('Delete', ca("/manage/permissions","delete_editor_group",ug.id), :confirm => 'Are you sure?')])%>
            </td>
          </tr>
      <%
        end
      %>
      </tbody>
    </table>
    <div id="actions">
      <%=secure_link_to("Create Editor Group",ca("/manage/permissions","create_editor_group"))%>
    </div>
  </div>
<%=end_div_wrapper%>
          
